using System;
using System.Threading.Tasks;
using Acme.BookStore.StockManagement.Dtos.KucunZhuXinxi;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Acme.BookStore.StockManagement.Services
{
    /// <summary>
    /// 库存主信息应用服务接口
    /// </summary>
    public interface IKucunZhuXinxiAppService : IApplicationService
    {
        /// <summary>
        /// 获取库存主信息分页列表
        /// </summary>
        /// <param name="input">查询条件</param>
        /// <returns>分页结果</returns>
        Task<PagedResultDto<KucunZhuXinxiDto>> GetListAsync(KucunZhuXinxiGetListInputDto input);

        /// <summary>
        /// 获取库存主信息详情
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns>库存主信息</returns>
        Task<KucunZhuXinxiDto> GetAsync(int id);

        /// <summary>
        /// 创建库存主信息
        /// </summary>
        /// <param name="input">库存主信息</param>
        /// <returns>创建后的库存主信息</returns>
        Task<KucunZhuXinxiDto> CreateAsync(KucunZhuXinxiDto input);

        /// <summary>
        /// 更新库存主信息
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <param name="input">库存主信息</param>
        /// <returns>更新后的库存主信息</returns>
        Task<KucunZhuXinxiDto> UpdateAsync(int id, KucunZhuXinxiDto input);

        /// <summary>
        /// 删除库存主信息
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns></returns>
        Task DeleteAsync(int id);
    }
} 